import requests from "@/utils/request";

export function getOrderList(query) {
    return requests({
        url: '/system/order/getOrderList',
        method: 'get',
        params: query
    })
}

export function getOrder(orderId) {
    return requests({
        url: '/system/order/getOrder/' + orderId,
        method: 'get'
    })
}

export function orderPay(orderId) {
    return requests({
        url: '/system/alipay/payOrder/' + orderId,
        method: 'post'
    })
}

export function notifyOrderPaySuccess(orderId) {
    return requests({
        url: '/system/order/orderPaySuccess/' + orderId,
        method: 'post'
    })
}